<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="author" content="lijinbo" />
    <title>196-element-ui弹窗拖拽及双击放大</title>
    <!--  -->
    <script type="text/javascript" src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-y/vue/2.6.14/vue.min.js"></script><script type="text/javascript" src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-y/vue/2.6.14/vue.min.js"></script><script type="text/javascript" src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/element-ui/2.15.7/index.min.js"></script><link rel="stylesheet" href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/element-ui/2.15.7/theme-chalk/index.min.css" />
    
    
    <script type="module" crossorigin src="../../../../static/js/196-index.html-002381f7.js"></script>
    <link rel="modulepreload" crossorigin href="../../../../static/common/modulepreload-polyfill-3cfb730f.js">
  </head>

  <body>
    <div id="app" class="box">
      <el-button @click="dialogVisible = true" type="primary">dialogDrag 打开弹窗</el-button>
      <el-dialog
        v-dialog-drag
        top="5vh"
        title="dialogDrag 提示"
        :visible.sync="dialogVisible"
        width="50%"
        :close-on-click-modal="false"
      >
        <span>可拖拽的弹窗</span>
        <span slot="footer">
          <el-button @click="dialogVisible = false">取 消</el-button>
          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
        </span>
      </el-dialog>
      <hr />
      <el-button @click="dialogZoom = true" type="primary">dialogDragZoom 打开弹窗</el-button>
      <el-dialog
        v-dialog-drag-zoom
        title="dialogDragZoom 提示"
        :visible.sync="dialogZoom"
        width="50%"
        :close-on-click-modal="false"
      >
        <span>可拖拽的弹窗 + 可缩放的弹窗</span>
        <span slot="footer">
          <el-button @click="dialogZoom = false">取 消</el-button>
          <el-button type="primary" @click="dialogZoom = false">确 定</el-button>
        </span>
      </el-dialog>
    </div>
    <script>
      new Vue({
        el: '#app',
        data() {
          return {
            dialogVisible: false,
            dialogZoom: false
          }
        }
      })
    </script>
  </body>
</html>
